Package com.cisco.pt.ipc.sim.pdu.impl
Class OSPFv6RouterInterfaceImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFv6RouterInterfaceImpl
- All Implemented Interfaces:
IPCData,OSPFv6RouterInterface,Pdu,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected Shortprotected intprotected IPAddressprotected ByteFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) getFieldType(String fieldName) intintgetType()voidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetIntefaceId(int intefaceId) voidvoidsetNeighborInterfaceId(int neighborInterfaceId) voidsetNeighborRouterId(IPAddress neighborRouterId) voidMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
type
-
metric
-
intefaceId
protected int intefaceId -
neighborInterfaceId
protected int neighborInterfaceId -
neighborRouterId
-
-
Constructor Details
-
OSPFv6RouterInterfaceImpl
public OSPFv6RouterInterfaceImpl()
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceOSPFv6RouterInterface- Returns:
- Byte Returns a Byte
-
setType
- Specified by:
setTypein interfaceOSPFv6RouterInterface- Parameters:
type- Takes in a parameter of type
-
getMetric
- Specified by:
getMetricin interfaceOSPFv6RouterInterface- Returns:
- Short Returns a Short
-
setMetric
- Specified by:
setMetricin interfaceOSPFv6RouterInterface- Parameters:
metric- Takes in a parameter of metric
-
getIntefaceId
public int getIntefaceId()- Specified by:
getIntefaceIdin interfaceOSPFv6RouterInterface- Returns:
- int Returns a int
-
setIntefaceId
public void setIntefaceId(int intefaceId) - Specified by:
setIntefaceIdin interfaceOSPFv6RouterInterface- Parameters:
intefaceId- Takes in a parameter of intefaceId
-
getNeighborInterfaceId
public int getNeighborInterfaceId()- Specified by:
getNeighborInterfaceIdin interfaceOSPFv6RouterInterface- Returns:
- int Returns a int
-
setNeighborInterfaceId
public void setNeighborInterfaceId(int neighborInterfaceId) - Specified by:
setNeighborInterfaceIdin interfaceOSPFv6RouterInterface- Parameters:
neighborInterfaceId- Takes in a parameter of neighborInterfaceId
-
getNeighborRouterId
- Specified by:
getNeighborRouterIdin interfaceOSPFv6RouterInterface- Returns:
- IPAddress Returns a IPAddress
-
setNeighborRouterId
- Specified by:
setNeighborRouterIdin interfaceOSPFv6RouterInterface- Parameters:
neighborRouterId- Takes in a parameter of neighborRouterId
-
getFieldType
- Overrides:
getFieldTypein classPduImpl
-
read
Reads this object from an EncodedBuffer of raw data -
pduRead
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classPduImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classPduImpl
-